package com.xiaoyu.lanling.feature.chat.model.message

import `in`.srain.cube.views.list.ListItemTypedBase
import com.xiaoyu.im.datamodel.AppMessage

abstract class ChatMessageBaseItem(val message: AppMessage) : ListItemTypedBase {

    override fun equals(other: Any?): Boolean {
        if (this === other) {
            return true
        }
        if (other !is ChatMessageBaseItem) {
            return false
        }
        return message == other.message
    }

    override fun hashCode(): Int {
        return message.hashCode()
    }

}